#ifndef BUFFER_H
#define BUFFER_H

#include "qkeymetro.h"
#include "poolableobject.h"
#include <QMutex>

class Buffer : public PoolableObject
{
public:
    Buffer();
    ~Buffer();
    QKeyMetro::SoundData ** getData();
    void changeSize(int newSize);
    int getSize();
    void clear();
private:
    QKeyMetro::SoundData * data_;
    int size_;
    QMutex m_;
};

#endif // BUFFER_H
